<template>
  <div class="weui-cell">
    <div class="weui-cell__bd">{{device.lable}}</div>
    <div class="weui-cell__ft">{{device.value}}</div>
  </div>
</template>

<script>
import { publishMessage } from "@/utils";
export default {
  name: "mpvue-button",
  data() {
    return {};
  },
  props: {
    device: Object
    // {
    //   type: "show",
    //   lable: "红外",
    //   key: "ir",
    //   value: 0
    // },

        //     {
        //   type: "show",
        //   lable: "水温",
        //   key: "b20",
        //   value: 0
        // },
  },
  mounted() {
   
  },
  methods: {
    action() {
      publishMessage(`{${this.device.key}}`);
    }
  }
};
</script>

<style>
</style>
